package Controller;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import MapaStuff.Hectarea;
import view.VistaHectarea;

public class ControladorMouse extends MouseAdapter {

    Hectarea hectareaModelo;

    VistaHectarea vista;

	private ControladorPrincipal padre;

    public ControladorMouse(Hectarea hectareaModelo, VistaHectarea vista, ControladorPrincipal controladorPrincipal) {
        this.hectareaModelo = hectareaModelo;
        this.vista = vista;
        this.padre = controladorPrincipal;
    }

    public void mousePressed(MouseEvent mouseEvent) {

    	padre.hicieronClickEn(hectareaModelo);
    }
}